<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts: xpt2046/xpt2046.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">ESP8266ILI9341DisplayProject</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0e80fb08802ded836bfad3909581be7f.html">xpt2046</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">xpt2046.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="xpt2046_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#ifndef _XPT2046_H_</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#define _XPT2046_H_</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="xpt2046_8h.html#a0f015f6bedcfd4583ed1133ed6d11963">   29</a></span>&#160;<span class="preprocessor">#define XPT2046_SAMPLES 8 </span><span class="comment">/* number of samples to take */</span><span class="preprocessor"></span></div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="xpt2046_8h.html#a6e35379ae648fa9db798144a9902f8ec">   30</a></span>&#160;<span class="preprocessor">#define XPT2046_DEBOUNCE 5 </span><span class="comment">/* Debound value in mS */</span><span class="preprocessor"></span></div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="xpt2046_8h.html#abce5dd412f3f040208dab108718fb875">   31</a></span>&#160;<span class="preprocessor">#define XPT2046_EVENTS 10 </span><span class="comment">/* Number of queued touch events */</span><span class="preprocessor"></span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="xpt2046_8h.html#aad6adcb00000ad4cdef14ece5e21bd81">   34</a></span>&#160;<span class="preprocessor">#define XPT2046_READ_Y  0x91    </span><span class="comment">/* Read Y position*/</span><span class="preprocessor"></span></div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="xpt2046_8h.html#a1f7063812ae4edbb96165244ee717815">   35</a></span>&#160;<span class="preprocessor">#define XPT2046_READ_Z1 0xb1    </span><span class="comment">/* Read Z1 */</span><span class="preprocessor"></span></div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="xpt2046_8h.html#aee315feb898d4f6f35389cb3068ad1eb">   36</a></span>&#160;<span class="preprocessor">#define XPT2046_READ_Z2 0xc1    </span><span class="comment">/* read Z2 */</span><span class="preprocessor"></span></div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="xpt2046_8h.html#aacb7a75fd6c78e1cd4e87fa930654ef6">   37</a></span>&#160;<span class="preprocessor">#define XPT2046_READ_X  0xd1    </span><span class="comment">/* Read X position */</span><span class="preprocessor"></span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="structxpt2046__win.html">   43</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structxpt2046__win.html">xpt2046_win</a></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;{</div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="structxpt2046__win.html#a83246592b12a936f334cea8f3374eafc">   45</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="structxpt2046__win.html#a83246592b12a936f334cea8f3374eafc">xmin</a>;</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="structxpt2046__win.html#a8a6c2bee978d86317e06b8bb41a65d7c">   46</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="structxpt2046__win.html#a8a6c2bee978d86317e06b8bb41a65d7c">ymin</a>;</div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="structxpt2046__win.html#a302357cc74ea4a1a532c51548b699e0e">   47</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="structxpt2046__win.html#a302357cc74ea4a1a532c51548b699e0e">xmax</a>;</div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="structxpt2046__win.html#ad5cfee0de6f30ce141b93b0aec904376">   48</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="structxpt2046__win.html#ad5cfee0de6f30ce141b93b0aec904376">ymax</a>;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;} <a class="code" href="xpt2046_8h.html#a1e217d8fafba01c2ad20b0986a613316">xpt2046_win_t</a>;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="struct__xpt2046.html">   51</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__xpt2046.html">_xpt2046</a> </div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;{</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="comment">// touch debounce state machine</span></div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="struct__xpt2046.html#a271e59b1fe899e8d1199f617bd381b15">   54</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="struct__xpt2046.html#a271e59b1fe899e8d1199f617bd381b15">state</a>;  <span class="comment">// Debounce state machine</span></div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="struct__xpt2046.html#a7ada38c703d34310580fbdb4625a5190">   55</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="struct__xpt2046.html#a7ada38c703d34310580fbdb4625a5190">ms</a>;     <span class="comment">// Debounce 1mS timer</span></div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="comment">// rotation of touch screen</span></div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="struct__xpt2046.html#a9730fbc57085ba0f27bf5563fbbce98b">   58</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="struct__xpt2046.html#a9730fbc57085ba0f27bf5563fbbce98b">rotation</a>;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="comment">// raw uncorrected values</span></div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="struct__xpt2046.html#a167dbfd40e17aadb4c0edd901db7e118">   61</a></span>&#160;    <a class="code" href="structxpt2046__win.html">xpt2046_win_t</a> <a class="code" href="struct__xpt2046.html#a167dbfd40e17aadb4c0edd901db7e118">raw</a>;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    <span class="comment">// map calibration to this range</span></div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="struct__xpt2046.html#a851cf6f24189bb94005f00867080a4cd">   64</a></span>&#160;    <a class="code" href="structxpt2046__win.html">xpt2046_win_t</a> <a class="code" href="struct__xpt2046.html#a851cf6f24189bb94005f00867080a4cd">map</a>;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <span class="comment">// touch input queue</span></div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="struct__xpt2046.html#ae47d989b6ec543113fc386181ea6d98a">   67</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="struct__xpt2046.html#ae47d989b6ec543113fc386181ea6d98a">ind</a>;    <span class="comment">// touch events</span></div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="struct__xpt2046.html#a8b4e70a2d7a60543902ac8648c986a31">   68</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="struct__xpt2046.html#a8b4e70a2d7a60543902ac8648c986a31">head</a>;   <span class="comment">// head of touch event queue</span></div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="struct__xpt2046.html#a22287733194e6d32116347f39f77523f">   69</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="struct__xpt2046.html#a22287733194e6d32116347f39f77523f">tail</a>;   <span class="comment">// tail of touch event queue</span></div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="struct__xpt2046.html#ac3f7953dda5a05a52276892bee461a29">   70</a></span>&#160;    <a class="code" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> XQ[<a class="code" href="xpt2046_8h.html#abce5dd412f3f040208dab108718fb875">XPT2046_EVENTS</a>+1];  <span class="comment">// Debounced X result</span></div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="struct__xpt2046.html#a0a1b0401066322d653135eb8db55d198">   71</a></span>&#160;    <a class="code" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> YQ[<a class="code" href="xpt2046_8h.html#abce5dd412f3f040208dab108718fb875">XPT2046_EVENTS</a>+1];  <span class="comment">// Debounced Y result</span></div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;} <a class="code" href="xpt2046_8h.html#a08bf485f6a48ae0788b72c98a416e01c">xpt2046_t</a>;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="struct__sdev.html">   74</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__sdev.html">_sdev</a> {</div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="struct__sdev.html#af6ec6d9f07c677d6a25c12c128a60d21">   75</a></span>&#160;    <a class="code" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> <a class="code" href="struct__sdev.html#af6ec6d9f07c677d6a25c12c128a60d21">min</a>,max;</div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="struct__sdev.html#a053a14f9e4bd729ce23aafdb1e69e48a">   76</a></span>&#160;    <span class="keywordtype">float</span> mean, <a class="code" href="struct__sdev.html#a053a14f9e4bd729ce23aafdb1e69e48a">sdev</a>;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;} <a class="code" href="xpt2046_8h.html#a4224e555e9e1280374a4987534846703">sdev_t</a>;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="comment">/* xpt2046.c */</span></div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="xpt2046_8h.html#acb7288fd027f95ea7db88c6f8c7c2c2a">XPT2046_spi_init</a> ( <span class="keywordtype">void</span> );</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="xpt2046_8h.html#a73c23d30b0f5adc10232894c18112778">XPT2046_key_flush</a> ( <span class="keywordtype">void</span> );</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<a class="code" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> <a class="code" href="xpt2046_8h.html#a1dccf53d8f7692a9ae5f272c7a16f462">XPT2046_read</a> ( <a class="code" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> cmd );</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="keywordtype">int</span> <a class="code" href="xpt2046_8h.html#a02c4dcf896824df15a98acfbe045d19d">XPT2046_xy_raw</a> ( <a class="code" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *<a class="code" href="cordic_8c.html#a46b4b48ef8c0c01099eb3bcdde8aa8db">X</a> , <a class="code" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *<a class="code" href="cordic_8c.html#ab746e677f466f17031e92ed577fc3c15">Y</a> );</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">int</span> <a class="code" href="xpt2046_8h.html#ac22e4f7d0ddbfd16b0c685f90db56656">XPT2046_xy_filtered</a> ( <a class="code" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *<a class="code" href="cordic_8c.html#a46b4b48ef8c0c01099eb3bcdde8aa8db">X</a> , <a class="code" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *<a class="code" href="cordic_8c.html#ab746e677f466f17031e92ed577fc3c15">Y</a> );</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">int</span> <a class="code" href="xpt2046_8h.html#abc3bff89c0ea5ee5bb74fa9ce6514789">nearest_run</a> ( <span class="keywordtype">int</span> *v , <span class="keywordtype">int</span> size , <span class="keywordtype">int</span> minsamples , <span class="keywordtype">int</span> *count );</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">int</span> <a class="code" href="xpt2046_8h.html#ac22e4f7d0ddbfd16b0c685f90db56656">XPT2046_xy_filtered</a> ( <a class="code" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *<a class="code" href="cordic_8c.html#a46b4b48ef8c0c01099eb3bcdde8aa8db">X</a> , <a class="code" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *<a class="code" href="cordic_8c.html#ab746e677f466f17031e92ed577fc3c15">Y</a> );</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">int</span> <a class="code" href="xpt2046_8h.html#a16726a7a1ffb7ff25c3a2601b578cc19">XPT2046_xy_filtered_test</a> ( <a class="code" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *<a class="code" href="cordic_8c.html#a46b4b48ef8c0c01099eb3bcdde8aa8db">X</a> , <a class="code" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *<a class="code" href="cordic_8c.html#ab746e677f466f17031e92ed577fc3c15">Y</a> );</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="xpt2046_8h.html#ab0f1cf1130e264b4181a0b525c9be839">XPT2046_task</a> ( <span class="keywordtype">void</span> );</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">int</span> <a class="code" href="xpt2046_8h.html#a69fc6431a2058d4fd8c26af6547cfae5">XPT2046_key</a> ( <a class="code" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *<a class="code" href="cordic_8c.html#a46b4b48ef8c0c01099eb3bcdde8aa8db">X</a> , <a class="code" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *<a class="code" href="cordic_8c.html#ab746e677f466f17031e92ed577fc3c15">Y</a> );</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">int</span> <a class="code" href="xpt2046_8h.html#a3c3571dfe466884bea2a25234aca83ad">sdev</a> ( <a class="code" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *samples , <span class="keywordtype">int</span> size , <a class="code" href="struct__sdev.html">sdev_t</a> *<a class="code" href="cordic_8c.html#a3da94d1c83a43c30add6c05fbbe1f194">Z</a> );</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="preprocessor">#endif // _XPT2046_H_</span></div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div><div class="ttc" id="structxpt2046__win_html_a302357cc74ea4a1a532c51548b699e0e"><div class="ttname"><a href="structxpt2046__win.html#a302357cc74ea4a1a532c51548b699e0e">xpt2046_win::xmax</a></div><div class="ttdeci">int xmax</div><div class="ttdef"><b>Definition:</b> <a href="xpt2046_8h_source.html#l00047">xpt2046.h:47</a></div></div>
<div class="ttc" id="struct__xpt2046_html_a167dbfd40e17aadb4c0edd901db7e118"><div class="ttname"><a href="struct__xpt2046.html#a167dbfd40e17aadb4c0edd901db7e118">_xpt2046::raw</a></div><div class="ttdeci">xpt2046_win_t raw</div><div class="ttdef"><b>Definition:</b> <a href="xpt2046_8h_source.html#l00061">xpt2046.h:61</a></div></div>
<div class="ttc" id="xpt2046_8h_html_abc3bff89c0ea5ee5bb74fa9ce6514789"><div class="ttname"><a href="xpt2046_8h.html#abc3bff89c0ea5ee5bb74fa9ce6514789">nearest_run</a></div><div class="ttdeci">MEMSPACE int nearest_run(int *v, int size, int minsamples, int *count)</div></div>
<div class="ttc" id="struct__xpt2046_html_a7ada38c703d34310580fbdb4625a5190"><div class="ttname"><a href="struct__xpt2046.html#a7ada38c703d34310580fbdb4625a5190">_xpt2046::ms</a></div><div class="ttdeci">int ms</div><div class="ttdef"><b>Definition:</b> <a href="xpt2046_8h_source.html#l00055">xpt2046.h:55</a></div></div>
<div class="ttc" id="xpt2046_8h_html_a08bf485f6a48ae0788b72c98a416e01c"><div class="ttname"><a href="xpt2046_8h.html#a08bf485f6a48ae0788b72c98a416e01c">xpt2046_t</a></div><div class="ttdeci">struct _xpt2046 xpt2046_t</div></div>
<div class="ttc" id="send_8c_html_a273cf69d639a59973b6019625df33e30"><div class="ttname"><a href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a></div><div class="ttdeci">unsigned short uint16_t</div><div class="ttdef"><b>Definition:</b> <a href="send_8c_source.html#l00018">send.c:18</a></div></div>
<div class="ttc" id="xpt2046_8h_html_abce5dd412f3f040208dab108718fb875"><div class="ttname"><a href="xpt2046_8h.html#abce5dd412f3f040208dab108718fb875">XPT2046_EVENTS</a></div><div class="ttdeci">#define XPT2046_EVENTS</div><div class="ttdef"><b>Definition:</b> <a href="xpt2046_8h_source.html#l00031">xpt2046.h:31</a></div></div>
<div class="ttc" id="struct__xpt2046_html_ae47d989b6ec543113fc386181ea6d98a"><div class="ttname"><a href="struct__xpt2046.html#ae47d989b6ec543113fc386181ea6d98a">_xpt2046::ind</a></div><div class="ttdeci">int ind</div><div class="ttdef"><b>Definition:</b> <a href="xpt2046_8h_source.html#l00067">xpt2046.h:67</a></div></div>
<div class="ttc" id="xpt2046_8h_html_a16726a7a1ffb7ff25c3a2601b578cc19"><div class="ttname"><a href="xpt2046_8h.html#a16726a7a1ffb7ff25c3a2601b578cc19">XPT2046_xy_filtered_test</a></div><div class="ttdeci">MEMSPACE int XPT2046_xy_filtered_test(uint16_t *X, uint16_t *Y)</div></div>
<div class="ttc" id="structxpt2046__win_html_a8a6c2bee978d86317e06b8bb41a65d7c"><div class="ttname"><a href="structxpt2046__win.html#a8a6c2bee978d86317e06b8bb41a65d7c">xpt2046_win::ymin</a></div><div class="ttdeci">int ymin</div><div class="ttdef"><b>Definition:</b> <a href="xpt2046_8h_source.html#l00046">xpt2046.h:46</a></div></div>
<div class="ttc" id="cordic_8c_html_a46b4b48ef8c0c01099eb3bcdde8aa8db"><div class="ttname"><a href="cordic_8c.html#a46b4b48ef8c0c01099eb3bcdde8aa8db">X</a></div><div class="ttdeci">Cordic_T X</div><div class="ttdoc">Main Cordic routine - used for basic trig and vector rotations We use fixed point numbers...</div><div class="ttdef"><b>Definition:</b> <a href="cordic_8c_source.html#l00102">cordic.c:102</a></div></div>
<div class="ttc" id="struct__xpt2046_html_a851cf6f24189bb94005f00867080a4cd"><div class="ttname"><a href="struct__xpt2046.html#a851cf6f24189bb94005f00867080a4cd">_xpt2046::map</a></div><div class="ttdeci">xpt2046_win_t map</div><div class="ttdef"><b>Definition:</b> <a href="xpt2046_8h_source.html#l00064">xpt2046.h:64</a></div></div>
<div class="ttc" id="struct__xpt2046_html_a271e59b1fe899e8d1199f617bd381b15"><div class="ttname"><a href="struct__xpt2046.html#a271e59b1fe899e8d1199f617bd381b15">_xpt2046::state</a></div><div class="ttdeci">int state</div><div class="ttdef"><b>Definition:</b> <a href="xpt2046_8h_source.html#l00054">xpt2046.h:54</a></div></div>
<div class="ttc" id="xpt2046_8h_html_a3c3571dfe466884bea2a25234aca83ad"><div class="ttname"><a href="xpt2046_8h.html#a3c3571dfe466884bea2a25234aca83ad">sdev</a></div><div class="ttdeci">MEMSPACE int sdev(uint16_t *samples, int size, sdev_t *Z)</div></div>
<div class="ttc" id="xpt2046_8h_html_a4224e555e9e1280374a4987534846703"><div class="ttname"><a href="xpt2046_8h.html#a4224e555e9e1280374a4987534846703">sdev_t</a></div><div class="ttdeci">struct _sdev sdev_t</div></div>
<div class="ttc" id="structxpt2046__win_html_a83246592b12a936f334cea8f3374eafc"><div class="ttname"><a href="structxpt2046__win.html#a83246592b12a936f334cea8f3374eafc">xpt2046_win::xmin</a></div><div class="ttdeci">int xmin</div><div class="ttdef"><b>Definition:</b> <a href="xpt2046_8h_source.html#l00045">xpt2046.h:45</a></div></div>
<div class="ttc" id="cordic_8c_html_ab746e677f466f17031e92ed577fc3c15"><div class="ttname"><a href="cordic_8c.html#ab746e677f466f17031e92ed577fc3c15">Y</a></div><div class="ttdeci">Cordic_T Y</div><div class="ttdef"><b>Definition:</b> <a href="cordic_8c_source.html#l00102">cordic.c:102</a></div></div>
<div class="ttc" id="struct__xpt2046_html"><div class="ttname"><a href="struct__xpt2046.html">_xpt2046</a></div><div class="ttdef"><b>Definition:</b> <a href="xpt2046_8h_source.html#l00051">xpt2046.h:51</a></div></div>
<div class="ttc" id="xpt2046_8h_html_a1dccf53d8f7692a9ae5f272c7a16f462"><div class="ttname"><a href="xpt2046_8h.html#a1dccf53d8f7692a9ae5f272c7a16f462">XPT2046_read</a></div><div class="ttdeci">uint16_t XPT2046_read(uint8_t cmd)</div></div>
<div class="ttc" id="xpt2046_8h_html_acb7288fd027f95ea7db88c6f8c7c2c2a"><div class="ttname"><a href="xpt2046_8h.html#acb7288fd027f95ea7db88c6f8c7c2c2a">XPT2046_spi_init</a></div><div class="ttdeci">MEMSPACE void XPT2046_spi_init(void)</div></div>
<div class="ttc" id="xpt2046_8h_html_a02c4dcf896824df15a98acfbe045d19d"><div class="ttname"><a href="xpt2046_8h.html#a02c4dcf896824df15a98acfbe045d19d">XPT2046_xy_raw</a></div><div class="ttdeci">int XPT2046_xy_raw(uint16_t *X, uint16_t *Y)</div></div>
<div class="ttc" id="struct__xpt2046_html_a8b4e70a2d7a60543902ac8648c986a31"><div class="ttname"><a href="struct__xpt2046.html#a8b4e70a2d7a60543902ac8648c986a31">_xpt2046::head</a></div><div class="ttdeci">int head</div><div class="ttdef"><b>Definition:</b> <a href="xpt2046_8h_source.html#l00068">xpt2046.h:68</a></div></div>
<div class="ttc" id="cordic_8c_html_a3da94d1c83a43c30add6c05fbbe1f194"><div class="ttname"><a href="cordic_8c.html#a3da94d1c83a43c30add6c05fbbe1f194">Z</a></div><div class="ttdeci">Cordic_T Z</div><div class="ttdef"><b>Definition:</b> <a href="cordic_8c_source.html#l00102">cordic.c:102</a></div></div>
<div class="ttc" id="struct__xpt2046_html_a9730fbc57085ba0f27bf5563fbbce98b"><div class="ttname"><a href="struct__xpt2046.html#a9730fbc57085ba0f27bf5563fbbce98b">_xpt2046::rotation</a></div><div class="ttdeci">int rotation</div><div class="ttdef"><b>Definition:</b> <a href="xpt2046_8h_source.html#l00058">xpt2046.h:58</a></div></div>
<div class="ttc" id="xpt2046_8h_html_ac22e4f7d0ddbfd16b0c685f90db56656"><div class="ttname"><a href="xpt2046_8h.html#ac22e4f7d0ddbfd16b0c685f90db56656">XPT2046_xy_filtered</a></div><div class="ttdeci">MEMSPACE int XPT2046_xy_filtered(uint16_t *X, uint16_t *Y)</div></div>
<div class="ttc" id="xpt2046_8h_html_a69fc6431a2058d4fd8c26af6547cfae5"><div class="ttname"><a href="xpt2046_8h.html#a69fc6431a2058d4fd8c26af6547cfae5">XPT2046_key</a></div><div class="ttdeci">MEMSPACE int XPT2046_key(uint16_t *X, uint16_t *Y)</div></div>
<div class="ttc" id="xpt2046_8h_html_ab0f1cf1130e264b4181a0b525c9be839"><div class="ttname"><a href="xpt2046_8h.html#ab0f1cf1130e264b4181a0b525c9be839">XPT2046_task</a></div><div class="ttdeci">MEMSPACE void XPT2046_task(void)</div></div>
<div class="ttc" id="struct__xpt2046_html_a22287733194e6d32116347f39f77523f"><div class="ttname"><a href="struct__xpt2046.html#a22287733194e6d32116347f39f77523f">_xpt2046::tail</a></div><div class="ttdeci">int tail</div><div class="ttdef"><b>Definition:</b> <a href="xpt2046_8h_source.html#l00069">xpt2046.h:69</a></div></div>
<div class="ttc" id="xpt2046_8h_html_a73c23d30b0f5adc10232894c18112778"><div class="ttname"><a href="xpt2046_8h.html#a73c23d30b0f5adc10232894c18112778">XPT2046_key_flush</a></div><div class="ttdeci">MEMSPACE void XPT2046_key_flush(void)</div></div>
<div class="ttc" id="cpu_8h_html_ad0fe97585b8891f5e4f2b9a6426330a4"><div class="ttname"><a href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a></div><div class="ttdeci">#define MEMSPACE</div><div class="ttdef"><b>Definition:</b> <a href="cpu_8h_source.html#l00025">cpu.h:25</a></div></div>
<div class="ttc" id="struct__sdev_html_a053a14f9e4bd729ce23aafdb1e69e48a"><div class="ttname"><a href="struct__sdev.html#a053a14f9e4bd729ce23aafdb1e69e48a">_sdev::sdev</a></div><div class="ttdeci">float sdev</div><div class="ttdef"><b>Definition:</b> <a href="xpt2046_8h_source.html#l00076">xpt2046.h:76</a></div></div>
<div class="ttc" id="struct__sdev_html"><div class="ttname"><a href="struct__sdev.html">_sdev</a></div><div class="ttdef"><b>Definition:</b> <a href="xpt2046_8h_source.html#l00074">xpt2046.h:74</a></div></div>
<div class="ttc" id="send_8c_html_aba7bc1797add20fe3efdf37ced1182c5"><div class="ttname"><a href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a></div><div class="ttdeci">unsigned char uint8_t</div><div class="ttdef"><b>Definition:</b> <a href="send_8c_source.html#l00017">send.c:17</a></div></div>
<div class="ttc" id="structxpt2046__win_html_ad5cfee0de6f30ce141b93b0aec904376"><div class="ttname"><a href="structxpt2046__win.html#ad5cfee0de6f30ce141b93b0aec904376">xpt2046_win::ymax</a></div><div class="ttdeci">int ymax</div><div class="ttdef"><b>Definition:</b> <a href="xpt2046_8h_source.html#l00048">xpt2046.h:48</a></div></div>
<div class="ttc" id="xpt2046_8h_html_a1e217d8fafba01c2ad20b0986a613316"><div class="ttname"><a href="xpt2046_8h.html#a1e217d8fafba01c2ad20b0986a613316">xpt2046_win_t</a></div><div class="ttdeci">struct xpt2046_win xpt2046_win_t</div><div class="ttdoc">initial calibration values for your display Note: these values are not rotated </div></div>
<div class="ttc" id="structxpt2046__win_html"><div class="ttname"><a href="structxpt2046__win.html">xpt2046_win</a></div><div class="ttdoc">initial calibration values for your display Note: these values are not rotated </div><div class="ttdef"><b>Definition:</b> <a href="xpt2046_8h_source.html#l00043">xpt2046.h:43</a></div></div>
<div class="ttc" id="struct__sdev_html_af6ec6d9f07c677d6a25c12c128a60d21"><div class="ttname"><a href="struct__sdev.html#af6ec6d9f07c677d6a25c12c128a60d21">_sdev::min</a></div><div class="ttdeci">uint16_t min</div><div class="ttdef"><b>Definition:</b> <a href="xpt2046_8h_source.html#l00075">xpt2046.h:75</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 31 2018 21:22:16 for ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
